public class ForExercise02 {
    public static void main(String[] args) {
        int count = 0;
        int sum = 0;
        for (int i = 1; i <= 100; i++) {
            if (i % 9 == 0) {
                System.out.println(i);
                count++;
                sum += i;
            }
        }
        System.out.println("1-100中9的倍数的个数为：" + count + "，总和为：" + sum);
    }
}
